/*
 * Created on Thu May 14 14:32:54 CEST 2009
 */
package se.sweco.gui;

import java.util.Hashtable;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {
  
	/* (non-Javadoc)
	* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	*/
	public void start(BundleContext context) throws Exception {
		TileMap gui = new TileMap(59.3263, 18.0748, 13, System.getProperty("tinfo.gui.mapprovider"));
		gui.setVisible(true);
		Hashtable<String, String> props = new Hashtable<String, String>();
		props.put("description", "GUI.");
		String[] classNames = {TileMap.class.getName(), TileMap.class.getName()};
		context.registerService(classNames, gui, props);
	}
	
	  /* (non-Javadoc)
	* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	*/
	public void stop(BundleContext context) throws Exception {
	}
}